# Template file for 'libkgapi'
pkgname=libkgapi
version=20.08.3
revision=1
build_style=cmake
# Liberation: To avoid QWebView not found error
configure_args+=" -DBUILD_TESTING=OFF "
hostmakedepends="extra-cmake-modules qt5-host-tools qt5-qmake python3 qt5-webkit
 gettext kcoreaddons"
makedepends="kcalendarcore-devel kcontacts-devel kio-devel qt5-webkit-devel
 qt5-webchannel-devel qt5-location-devel"
short_desc="KDE-based library for accessing various Google services"
maintainer="John <me@johnnynator.dev>"
license="LGPL-2.1-or-later"
homepage="https://invent.kde.org/pim/libkgapi"
distfiles="${KDE_SITE}/release-service/${version}/src/${pkgname}-${version}.tar.xz"
checksum=8a2233497b07e768c4a4095c4333fa975042f6e9ba17ae0e3d66ed9c7672afce

# Liberation: Removed webengine related code

libkgapi-devel_package() {
	short_desc+=" - development files"
	depends="${sourcepkg}-${version}_${revision} ${makedepends}"
	pkg_install() {
		vmove usr/include
		vmove usr/lib/cmake
		vmove usr/lib/qt5/mkspecs
		vmove "usr/lib/*.so"
	}
}
